package com.eairlv.route.server.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lv
 * @create 2018-12-03 21:33
 * @desc
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageVO<T> {

    @ApiModelProperty("当前页数")
    private Long pageIndex;

    @ApiModelProperty("总页数")
    private Long pageNumber;

    @ApiModelProperty("每页数")
    private Long pageSize;

    @ApiModelProperty("数据总数")
    private Long count;

    @ApiModelProperty("数据")
    private List<T> data;

}
